<template>
  <div class="employees-container">
    <div class="app-container">
      <el-card>
        <el-tabs>
          <el-tab-pane label="登录账户设置">
            <login-setting />
          </el-tab-pane>
          <el-tab-pane label="个人详情">
            <user-info />
          </el-tab-pane>
          <el-tab-pane label="岗位信息">
            <job-info />
          </el-tab-pane>
        </el-tabs>
      </el-card>
    </div>
  </div>
</template>

<script>
import loginSetting from './components/login-setting'
import userInfo from './components/user-info'
import jobInfo from './components/job-info'

export default {
  components: {
    jobInfo, loginSetting, userInfo
  },
  data() {
    return {
      userId: this.$route.params.id // 路径参数接受
      // userId: this.$route.query.id // 查询参数
    }
  }
}
</script>
